package com.zhdl.hardware.robot.fair.service.impl;

import com.zhdl.hardware.robot.fair.repository.FairPortCmdHandleDao;
import com.zhdl.hardware.robot.fair.service.FairCmdSendService;
import com.zhdl.modules.tools.CommonCallback;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class FairCmdSendServiceImpl implements FairCmdSendService {

    @Resource
    private FairPortCmdHandleDao fairPortCmdHandleDao;

    /**
     * 法奥-写入机器人动作
     */
    @Override
    public void FairActionRun(String port, String cmd, CommonCallback<String> callback){
        fairPortCmdHandleDao.FairRobotAction(port,cmd,callback);
    }

    /**
     * 法奥-读取机器人关节坐标
     */
    @Override
    public void FairGetJointPos(String port, String cmd, CommonCallback<String> callback){
        fairPortCmdHandleDao.FairRobotGetJointPos(port,cmd,callback);
    }
}
